<template>
  <div>
    <head-top routerName="myAmount" title="我的元宝"></head-top>
    <div class="content-wrap">
      <div class="back">
        <div class="relative">
          <div class="title">元宝</div>
          <div class="activity">{{ COIN }}</div>
          <!-- <ul>
            <li>
              <div class="label">加速包产出</div>
              <div class="data">+30</div>
            </li>
            <li>
              <div class="label">释放</div>
              <div class="data">+30</div>
            </li>
            <li>
              <div class="label">消耗</div>
              <div class="data">-10</div>
            </li>
          </ul> -->
        </div>
      </div>
      <assets-list :assetsType="assetsType"></assets-list>
    </div>
  </div>
</template>
<script>
import HeadTop from "@/components/head";
import assetsList from "./assetsList";
import { assetsLogNum } from "@/api/myAssets";

export default {
  components: {
    HeadTop,
    assetsList,
  },
  data() {
    return {
      assetsType: "COIN",
      COIN: "",
    };
  },
  created() {
    assetsLogNum({ assetsType: this.assetsType }).then((res) => {
      this.COIN = res.data.resultData.COIN;
    });
  },
};
</script>
<style lang="less" scoped>
@import "./css.less";
.back {
  height: 125px;
  background: #324d8b;
  background: linear-gradient(to right bottom, #aabde9, #324d8b 50%);
  background-size: 660px 305px;
}
</style>